"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
    async up(queryInterface, Sequelize) {
        await queryInterface.bulkInsert(
            "teleplay_class",
            [
                {id: 1, name: "综艺", show: true, idx: 53},
                {id: 2, name: "动漫", show: true, idx: 99},
                {id: 3, name: "剧情", show: true, idx: 49},
                {id: 4, name: "动作", show: true, idx: 51},
                {id: 5, name: "冒险", show: true, idx: 99},
                {id: 6, name: "历史", show: true, idx: 99},
                {id: 7, name: "古装", show: true, idx: 99},
                {id: 8, name: "喜剧", show: true, idx: 99},
                {id: 9, name: "奇幻", show: true, idx: 99},
                {id: 10, name: "家庭", show: true, idx: 99},
                {id: 11, name: "恐怖", show: true, idx: 99},
                {id: 12, name: "悬疑", show: true, idx: 99},
                {id: 13, name: "惊悚", show: true, idx: 99},
                {id: 14, name: "战争", show: true, idx: 99},
                {id: 15, name: "武侠", show: true, idx: 99},
                {id: 16, name: "灾难", show: true, idx: 99},
                {id: 17, name: "爱情", show: true, idx: 99},
                {id: 18, name: "犯罪", show: true, idx: 99},
                {id: 19, name: "科幻", show: true, idx: 99},
                {id: 20, name: "传记", show: true, idx: 99},
            ],
            {}
        );
    },

    async down(queryInterface, Sequelize) {
        return queryInterface.bulkDelete("teleplay_class", null, {});
    },
};
